package main

import "fmt"

type Box struct {
	length float32
	width  float32
	height float32
}

func (b *Box) getVolume() float32 {
	return b.length * b.width * b.height
}

func main() {
	b := &Box{
		length: 10.5,
		width:  12.5,
		height: 45.1,
	}
	fmt.Printf("体积是%.2f", b.getVolume())
}
